package com.kitty.game.task.model.product.targetparam;

import com.kitty.game.task.model.product.TaskTargetParam;
import org.nutz.lang.util.NutMap;

/**
 * 领取宠物目标参数
 */

public class FetchPetTargetParam extends TaskTargetParam {
    /**对应宠物配置表的name*/
    private String name;
    /**获得宠物等级*/
    private int level;
    /**绑定的时长，单位秒 0表示不绑定，大于0为绑定的时长，小于0为永久绑定*/
    private int bind;


    @Override
    public TaskTargetParam parseParam(NutMap nutMap) {
        name = nutMap.getString("name");
        level = nutMap.getInt("level");
        bind = nutMap.getInt("bind");

        return this;
    }

    public String getName() {
        return name;
    }

    public int getLevel() {
        return level;
    }

    public int getBind() {
        return bind;
    }
}
